package com.csgsystems.im.survey.persistence.hibernate;

import java.util.List;

import org.hibernate.Query;
import org.hibernate.Session;

import com.csgsystems.im.hibernate.HibernateDao;
import com.csgsystems.im.survey.QuestionType;
import com.csgsystems.im.survey.persistence.QuestionTypeDao;

public class QuestionTypeDaoImpl extends HibernateDao<QuestionType, Integer> implements
		QuestionTypeDao {

	@Override
	public List<QuestionType> findAll() {
		Session session = sessionFactory.getCurrentSession();
		Query query =  session.createQuery("from QuestionType");
		return query.list();
		
	}

}
